home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _5ED72F10EA234092BA6D5E0AE8032D15 / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2003-09-26  |  1.3 KB  |  68 lines

  1. function utLocalConnUniqueID()
  2. {
  3.    var nRet = uniqueHelpID;
  4.    if(nRet != undefined)
  5.    {
  6.       return nRet;
  7.    }
  8.    var cParent = _parent;
  9.    while(cParent != undefined)
  10.    {
  11.       nRet = cParent.uniqueHelpID;
  12.       if(nRet != undefined)
  13.       {
  14.          return nRet;
  15.       }
  16.       cParent = cParent._parent;
  17.    }
  18.    return 0;
  19. }
  20. function SendMsgToDebug(msg, time)
  21. {
  22.    var outgoing_lc = new LocalConnection();
  23.    outgoing_lc.send("WildfireDebugSWF","Message",msg,time);
  24.    delete outgoing_lc;
  25.    return undefined;
  26. }
  27. function Debug_alert(msg)
  28. {
  29.    var strSend = "javascript:alert(";
  30.    strSend += "\'" + msg + "\'";
  31.    strSend += ");";
  32.    getURL(strSend,"");
  33.    undefined;
  34.    return undefined;
  35. }
  36. function Debug_trace(msg)
  37. {
  38. }
  39. function Debug_timer(msg)
  40. {
  41.    var date = new Date();
  42.    var time = date.getTime();
  43.    SendMsgToDebug(msg,time);
  44. }
  45. function CStageListener()
  46. {
  47.    this.onResize = function()
  48.    {
  49.       if(_parent._visible)
  50.       {
  51.          m_cApp.OnPageResized();
  52.       }
  53.    };
  54. }
  55. function DoCommand(strCmd, cSender, strText)
  56. {
  57.    Selection.setSelection(0,256);
  58.    m_cApp.Search(strText);
  59. }
  60. function ItemLoaded(cSender)
  61. {
  62.    m_cApp.InitSearchInputField(cSender);
  63. }
  64. var uniqueHelpID = utLocalConnUniqueID();
  65. Stage.addListener(new CStageListener());
  66. Stage.scaleMode = "noScale";
  67. Stage.align = "TL";
  68.